<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        const fs = require("fs");
        let datal = fs.readFileSync("./mock.text");
        console.log(datal.toString());
        let data2 = fs.readFile("./mock.txt", (err, data3) => {
            console.log("data3 ++++");
            console.log(data3.toString());
        });
        console.log(data2);
    </script>
</body>

</html>